//
//  WeeKCell.m
//  timelyRain
//
//  Created by Jiafei Wei on 16/8/8.
//  Copyright © 2016年 Jiafei Wei. All rights reserved.
//

#import "WeeKCell.h"

@interface WeeKCell()
@property (weak, nonatomic) IBOutlet UIImageView *selectImageV;
@property (weak, nonatomic) IBOutlet UILabel *showName;

@end

@implementation WeeKCell
- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

//创建自定义可重用的cell对象
+ (instancetype)setWeekTimeCellWithTableView:(UITableView *)tableView
{
    static NSString *reuseId = @"gb";
    WeeKCell *cell = [tableView dequeueReusableCellWithIdentifier:reuseId];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"WeeKCell" owner:nil options:nil] lastObject];
    }
    return cell;
}

-(void)setName:(NSString *)name{
    [_showName setText:name];
}
-(void)setSelcect:(BOOL)selcect{
    if (selcect){
        [_selectImageV setImage:[UIImage imageNamed:@"week_select"]];
    }else{
        [_selectImageV setImage:[UIImage imageNamed:@""]];
    }
}
@end